//
//  AboutViewController.m
//  HandheldHospital
//
//  Created by zhangchao on 16/2/27.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "AboutViewController.h"

#define kHeight self.view.frame.size.height
#define kWidth self.view.frame.size.width

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"关于掌上医院";
    [self addViews];
}

//页面布局
- (void)addViews
{
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.12, kWidth * 0.1, kHeight * 0.05)];
    imageV.image = [UIImage imageNamed:@"ZSWY"];
    [self.view addSubview:imageV];
    
    UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.2, kHeight * 0.12, kWidth * 0.2, kHeight * 0.02)];
    label1.text = @"掌上医院";
//    label1.backgroundColor = [UIColor blueColor];
    label1.font = [UIFont fontWithName:@"Helvetica-Bold" size:16.f];
    [self.view addSubview:label1];
    
    UILabel *label2 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.4, kHeight * 0.12, kWidth * 0.2, kHeight * 0.02)];
    label2.text = @"V1.0";
//    label2.backgroundColor = [UIColor blueColor];
    label2.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label2];
    
    UILabel *label3 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.2, kHeight * 0.15, kWidth * 0.8, kHeight * 0.02)];
    label3.text = @"手机交费不排队，看病全程有指引";
    label3.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label3];
    
    UILabel *label4 = [[UILabel alloc] initWithFrame:CGRectMake(0, kHeight * 0.19, kWidth, kHeight * 0.01)];
    label4.backgroundColor = [UIColor grayColor];
    [self.view addSubview:label4];
    
    UILabel *label5 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.22, kWidth * 0.9, kHeight * 0.1)];
    label5.text = @"掌上医院,让看病像看电影一样舒适和容易。\n掌上医院是一款解决大众看病难的手机APP，提供手机挂号、手机支付、电子病历、电子检查报告、在线咨询医生等快速便捷就医服务。";
    label5.font = [UIFont systemFontOfSize:13];
    label5.numberOfLines = 0;
    [self.view addSubview:label5];
    
    UILabel *label6 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.34, kWidth * 0.2, kHeight * 0.02)];
    label6.text = @"预约挂号";
    label6.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    [self.view addSubview:label6];
    
    UILabel *label7 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.37, kWidth * 0.9, kHeight * 0.02)];
    label7.text = @"诊前预约挂号免除排队烦恼。";
    label7.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label7];
    
    UILabel *label8 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.41, kWidth * 0.2, kHeight * 0.02)];
    label8.text = @"咨询医生";
    label8.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    [self.view addSubview:label8];
    
    UILabel *label9 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.44, kWidth * 0.9, kHeight * 0.02)];
    label9.text = @"诊后可与主治医生保持联系和复诊预约。";
    label9.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label9];
    
    UILabel *label10 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.48, kWidth * 0.2, kHeight * 0.02)];
    label10.text = @"排号提醒";
    label10.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    [self.view addSubview:label10];
    
    UILabel *label11 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.51, kWidth * 0.9, kHeight * 0.02)];
    label11.text = @"随时查看候诊、检查和取药排号情况。";
    label11.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label11];
    
    UILabel *label12 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.55, kHeight * 0.2, kHeight * 0.02)];
    label12.text = @"手机交费";
    label12.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    [self.view addSubview:label12];
    
    UILabel *label13 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.58, kHeight * 0.9, kHeight * 0.02)];
    label13.text = @"通过手机支付各项诊疗费用。";
    label13.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label13];
    
    UILabel *label14 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.62, kHeight * 0.2, kHeight * 0.02)];
    label14.text = @"检验报告";
    label14.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    [self.view addSubview:label14];
    
    UILabel *label15 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.65, kHeight * 0.9, kHeight * 0.02)];
    label15.text = @"手查查阅各项检验报告。";
    label15.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label15];
    
    UILabel *label16 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.69, kHeight * 0.2, kHeight * 0.02)];
    label16.text = @"电子病历";
    label16.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    [self.view addSubview:label16];
    
    UILabel *label17 = [[UILabel alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.72, kHeight * 0.9, kHeight * 0.02)];
    label17.text = @"手机查看个人电子病历，随时掌握健康档案。";
    label17.font = [UIFont systemFontOfSize:13];
    [self.view addSubview:label17];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
